package nothing;

import java.util.Comparator;
import org.apache.log4j.Logger;
import nothing.model.RecipeTime;

public class TimeComparator implements Comparator<RecipeTime> {
    static Logger log = Logger.getLogger(TimeComparator.class);

    public TimeComparator() {
    }
    
    public int compare(RecipeTime recipeTime, RecipeTime recipeTime2) {
                
        if (recipeTime.getTime() >recipeTime2.getTime()){
            return 1;
        }
        if (recipeTime.getTime() <recipeTime2.getTime()){
            return -1;
        }
        return 0;
    }
            
}
